<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Listagem de Quartos</title>
	<meta name="generator" content="TextMate http://macromates.com/">
	<meta name="author" content="leobessa">
	<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
	<!-- Date: 2009-02-24 -->
</head>
<body>
<div id="container">
	<div id="banner">
	<h1>Quartos</h1>
	</div>
	<div id="nav">
		<p>
		Faça sua reserva.
		</p>
		<a href="/">Home</a><br/>
	</div>
	<div id="content">
	<table border="0" cellspacing="5" cellpadding="5">
		<tr>
			<th>Número do Quarto</th>
			<th>Camas de Solteiro</th> 
			<th>Camas de Casal</th> 
			<th>Gênero</th>
			<th>Vagas Disponíveis</th>
		</tr>
	
		{% for room in rooms %}
			<tr>
				<td>{{ room.number }}</td>
				<td>{{ room.single_beds }}</td>
				<td>{{ room.double_beds }}</td>
				<td>{{ room.getGenre }}</td>
				<td>{{ room.avaiableBeds }}</td>
				<td><a href="/viewReservations?room.key={{ room.key }}">Visualizar Reservas</a></td>
				<td>{% if not room.isFull %}<a href="/makeReservationForm?room.key={{ room.key }}"> Reservar</a>{% endif %}</td>
			</tr>
		{% endfor %}
	</table>
	</div>
	<div id="footer">
	 Desenvolvido por Leonardo Bessa
	</div>
</div>
</body>
</html>
